
import java.text.*;
import java.util.*;
public class  SimpleDate {
	public static void main(String[] args) throws Exception{
		try {
            String strDate = "2010-11-09";
            DateFormat df1 = new SimpleDateFormat("yyyy-MM-dd");
            Date dt = df1.parse(strDate);
            System.out.println(new SimpleDateFormat("MM-ddyyyy").format(dt));
			System.out.println(new SimpleDateFormat("MM-dd-yyyy").format(new SimpleDateFormat("yyyy-MM-dd").parse("2010-11-09")));
            System.out.println(new SimpleDateFormat("dd-MMM-yyyy",Locale.US).format(dt));
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
	}
}
